#define _CRT_SECURE_NO_WARNINGS 1
#include<set>
#include"Set.h"
#include"Map.h"

int main()
{
	Map::map<int, int> m;
	Set::set<int> s;
	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	for (auto e : a)
	{
		//m.insert(make_pair(e, e));
		m[e]++;
		s.insert(e);
	}

	Map::map<int, int>::iterator it = m.begin();
	Set::set<int>::iterator It = s.begin();
	while (it != m.end())
	{
		//it->first += 100;
		it->second += 100;

		cout << it->first << ":" << it->second << endl;
		++it;
	}
	cout << endl;

	while (It != s.end())
	{
		//*It += 100;
		cout << *It << " ";
		++It;
	}

	/*set<int> S;
	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	for (auto e : a)
	{
		S.insert(e);
	}

	set<int>::iterator it = S.begin();*/
	//it--;
	//cout << *it << endl;

	return 0;
}